﻿using Microsoft.AspNetCore.Http;
using Microsoft.AspNetCore.Mvc;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;

namespace mvc.Controllers
{
    [Route("api/[controller]")] // api/Values
    [ApiController]
    public class ValuesController : ControllerBase
    {
        [HttpGet] // http://localhost:5000/api/Values
        public string func1()
        {
            return "func1";
        }

        [HttpGet("func2/{a:int}")] // http://localhost:5000/api/Values/func2/7
        public string func2(int a)
        {
            return "func2" + a;
        }
    }
}
